function OpenWindow(Url, Width, Height, WindowObj) {
	var ReturnStr = showModalDialog(Url, 
	                                WindowObj, 
	                                "dialogWidth:" + Width + "pt;dialogHeight:" + Height + "pt;"+
	                                "status:no;help:no;scroll:no;");
	return ReturnStr;
}

/**
 * 空格去除
 * @returns
 */
String.prototype.trim = function() {
	return this.replace(/(^\s*)|(\s*$)/g, "");
};

/**
 * 字符串有效性判断
 * @param maxlength
 * @returns {Boolean}
 */
String.prototype.valid = function (maxlength){
	return typeof this != 'undefined' && this.trim() != '' && this.length <= maxlength;
};